package com.hornsun.data.repository.mapper;

import com.hornsun.data.dbo.Authorization;
import com.hornsun.data.dbo.AuthorizationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface AuthorizationMapper {
    long countByExample(AuthorizationExample example);

    int deleteByExample(AuthorizationExample example);

    int deleteByPrimaryKey(String clientGuid);

    int insert(Authorization record);

    int insertSelective(Authorization record);

    List<Authorization> selectByExampleWithRowbounds(AuthorizationExample example, RowBounds rowBounds);

    List<Authorization> selectByExample(AuthorizationExample example);

    Authorization selectByPrimaryKey(String clientGuid);

    int updateByExampleSelective(@Param("record") Authorization record, @Param("example") AuthorizationExample example);

    int updateByExample(@Param("record") Authorization record, @Param("example") AuthorizationExample example);

    int updateByPrimaryKeySelective(Authorization record);

    int updateByPrimaryKey(Authorization record);

    //根据用户名查询账号授权的数量
    long countByUserName(String userName);

    Authorization getByUserName(String userName);
}